package cn.edu.nuc.bre.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 事务历史
 * @author 王凯
 *
 */
public class History implements Serializable{
	
    /**
	 * 序列化id
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 事务历史id
	 */
	private Integer hid;

	/**
	 * 事务id
	 */
    private Integer tid;

    /**
     * 处理部门名称
     */
    private String dname;

    /**
     * 事务状态
     */
    private Integer hstate;

    /**
     * 标题
     */
    private String htitle;

    /**
     * 内容
     */
    private String hcontent;

    /**
     * 处理人姓名
     */
    private String hperson;

    /**
     * 处理时间
     */
    private Date hdealtime;

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Integer getHstate() {
        return hstate;
    }

    public void setHstate(Integer hstate) {
        this.hstate = hstate;
    }

    public String getHtitle() {
        return htitle;
    }

    public void setHtitle(String htitle) {
        this.htitle = htitle;
    }

    public String getHcontent() {
        return hcontent;
    }

    public void setHcontent(String hcontent) {
        this.hcontent = hcontent;
    }

    public String getHperson() {
        return hperson;
    }

    public void setHperson(String hperson) {
        this.hperson = hperson;
    }

    public Date getHdealtime() {
        return hdealtime;
    }

    public void setHdealtime(Date hdealtime) {
        this.hdealtime = hdealtime;
    }

	@Override
	public String toString() {
		return "事务历史 [历史id=" + hid 
				+ ", 事务id=" + tid 
				+ ", 处理部门名称=" + dname 
				+ ", 事务状态=" + hstate 
				+ ", 标题=" + htitle
				+ ", 内容=" + hcontent 
				+ ", 处理人姓名=" + hperson 
				+ ", 处理时间=" + hdealtime 
				+ "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((hid == null) ? 0 : hid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		History other = (History) obj;
		if (hid == null) {
			if (other.hid != null)
				return false;
		} else if (!hid.equals(other.hid))
			return false;
		return true;
	}

}